var app = getApp()
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    fileList: Array,
    listTitle: Object
  },
  /**
   * 组件的初始数据
   */
  data: {
    img_host: '',
    active: 0
  },
  attached: function() {
    this.setData({
      img_host: app.img_host
    })
  },


  /**
   * 组件的方法列表
   */
  methods: {
    onChange(e) {
      this.triggerEvent('changetabevent', e.detail.index)
    },
    toBankDetail(e) {
      const { id } = e.currentTarget.dataset;
      // wx.setStorageSync("data-bankid", id)
      app.id = id
      this.triggerEvent('changetobankdetail', e.detail.index)
    }
  }
})
